<?php htmlTemplate('admin_header_frame.php');?>
<div class="title">在线人数统计

</div>


<table width="100%" cellspacing="1" cellpadding="3" id="listTable">
  <tbody>
    	<tr>
		<td colspan="2">
		<form action="">			
		日期：<input 
			id="login_sdatetime" 
			name="login_sdatetime" 
			type="text" 
			style="width:65px;"
			value='<?php 
			if (Http::get('login_sdatetime')){
				echo Http::get('login_sdatetime');
			}
			?>' class='date demo_time'  
			onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"
			>-<input 
			id="login_edatetime" 
			name="login_edatetime" 
			type="text" 
			style="width:65px;"
			value='<?php 				 
			if (Http::get('login_edatetime')){
				echo Http::get('login_edatetime');
			}
			?>' class='date demo_time'  
			onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"
			>
		<input type="submit" value="搜 索" class="btn"> 
		
		</form>
		</td>
	</tr>
  
  <tr>
  	<th align="left" width="10%">日期</th>  
    <th>在线人数</th>     
  </tr>

	<?php 
	$sumnum=0;
	if ($rs){
	foreach ($rs as $k=>$v):
	$sumnum = $sumnum+ $v['count_user'];
	?>
   <tr>
    <td align="left" width="10%"> <?php echo substr($v['timeline'],0,15);?></td>
    <td align="center">
	<?php echo $v['count_user'];?>
	</td>      
  </tr>
  <?php endforeach;}?>
  <tr style="background: #F4FAFB;">
  <td align="left">合计</td>
	<td align="center"><? echo $sumnum;?></td>
</tr>
 
 
  </tbody>
</table>
<?php htmlTemplate('admin_footer_frame.php');?>